﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FksAutoTask.App_Code
{
    public class Comm
    {
        /// <summary>
        /// 获得许可证码验证码
        /// </summary>
        /// <param name="ServerId">指定服务器ID</param>
        /// <param name="Date">授权服务的日期</param>
        public string get_Vcode(string ServerId, DateTime Date)
        {
            string _server_id = ServerId;
            if (string.IsNullOrEmpty(_server_id))
                _server_id = Fks.DataBase.DbBase.Services_Id();

            return Fks.Common.SecurityUntity.DsRypts.EncryptString(Date.ToString("yyyy-MM-dd"), _server_id + "$098@339301");
        }
    }
}
